package org.cmcc.pcap.jpcap.udp;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import jpcap.packet.UDPPacket;

/**
 * 
 * @author Amish
 * @date 2018年12月24日 下午3:49:08
 *
 */
public class UdpProducer implements Runnable {
	public static Logger logger = LogManager.getLogger(UdpProducer.class);
	UDPPacket udpPacket;
	UdpConnectionCache udpConnectionCache;
	
	public UdpProducer(UDPPacket udpPacket ,UdpConnectionCache udpConnectionCache){
		this.udpPacket = udpPacket;
		this.udpConnectionCache = udpConnectionCache;
	}

	@Override
	public void run() {
		this.udpConnectionCache.addUDPPacket(this.udpPacket);
	}

}
